home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / Sample Code / Archive / Graphics / QuickDraw GX / GX->PostScript Sample / Interfaces&Libraries / Interfaces / CIncludes / GXErrors.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-09-28  |  35.9 KB  |  724 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        GXErrors.h
  3.  
  4.      Contains:    QuickDraw GX error constants and debugging routines
  5.  
  6.      Version:    Technology:    Quickdraw GX 1.1
  7.                  Release:    Universal Interfaces 3.0
  8.  
  9.      Copyright:    © 1994-1997 by Apple Computer, Inc., all rights reserved.
  10.  
  11.      Bugs?:        Please include the the file and version information (from above) with
  12.                  the problem description.  Developers belonging to one of the Apple
  13.                  developer programs can submit bug reports to:
  14.  
  15.                      devsupport@apple.com
  16.  
  17. */
  18. #ifndef __GXERRORS__
  19. #define __GXERRORS__
  20.  
  21. #ifndef __CONDITIONALMACROS__
  22. #include <ConditionalMacros.h>
  23. #endif
  24. #ifndef __MIXEDMODE__
  25. #include <MixedMode.h>
  26. #endif
  27. #ifndef __GXTYPES__
  28. #include <GXTypes.h>
  29. #endif
  30.  
  31.  
  32.  
  33. #if PRAGMA_ONCE
  34. #pragma once
  35. #endif
  36.  
  37. #ifdef __cplusplus
  38. extern "C" {
  39. #endif
  40.  
  41. #if PRAGMA_IMPORT
  42. #pragma import on
  43. #endif
  44.  
  45. #if PRAGMA_STRUCT_ALIGN
  46.     #pragma options align=mac68k
  47. #elif PRAGMA_STRUCT_PACKPUSH
  48.     #pragma pack(push, 2)
  49. #elif PRAGMA_STRUCT_PACK
  50.     #pragma pack(2)
  51. #endif
  52.  
  53. #if defined(__MWERKS__) && TARGET_CPU_68K
  54.     #pragma push
  55.     #pragma pointers_in_D0
  56. #endif
  57.  
  58.  
  59. enum {
  60.     gxFirstSystemError            = -27999,                        /* 0xffff92a1 */
  61.     gxFirstFatalError            = -27999,
  62.     gxLastFatalError            = -27951,
  63.     gxFirstNonfatalError        = -27950,
  64.     gxFirstFontScalerError        = -27900,
  65.     gxLastFontScalerError        = -27851,
  66.     gxFirstParameterError        = -27850,
  67.     gxFirstImplementationLimitError = -27800,
  68.     gxFirstSystemDebuggingError    = -27700,
  69.     gxLastSystemError            = -27000,                        /* 0xffff9688 */
  70.     gxFirstLibraryError            = 1048576L,                        /* 0x00100000 */
  71.     gxLastLibraryError            = 2097151L,                        /* 0x001fffff */
  72.     gxFirstAppError                = 2097152L,                        /* 0x00200000 */
  73.     gxLastAppError                = 4194303L,                        /* 0x003fffff */
  74.     gxFirstSystemWarning        = -26999,                        /* 0xffff9689 */
  75.     gxFirstResultOutOfRangeWarning = -26950,
  76.     gxFirstParameterOutOfRangeWarning = -26900,
  77.     gxFirstFontScalerWarning    = -26850,
  78.     gxFirstSystemDebuggingWarning = -26700,
  79.     gxLastSystemWarning            = -26000,                        /* 0xffff9a70 */
  80.     gxFirstLibraryWarning        = 4194304L,                        /* 0x00400000 */
  81.     gxLastLibraryWarning        = 5242879L,                        /* 0x004fffff */
  82.     gxFirstAppWarning            = 5242880L,                        /* 0x00500000 */
  83.     gxLastAppWarning            = 7340031L,                        /* 0x006fffff */
  84.     gxFirstSystemNotice            = -25999,                        /* 0xffff9a71 */
  85.     gxLastSystemNotice            = -25500,                        /* 0xffff9c64 */
  86.     gxFirstLibraryNotice        = 7340032L,                        /* 0x00700000 */
  87.     gxLastLibraryNotice            = 7602175L,                        /* 0x0073ffff */
  88.     gxFirstAppNotice            = 7602176L,                        /* 0x00740000 */
  89.     gxLastAppNotice                = 8388607L                        /* 0x007fffff */
  90. };
  91.  
  92.  
  93. enum {
  94.                                                                 /* truly fatal errors */
  95.     out_of_memory                = gxFirstFatalError,
  96.     internal_fatal_error        = gxFirstFatalError + 1,
  97.     no_outline_font_found        = gxFirstFatalError + 2,
  98.     not_enough_memory_for_graphics_client_heap = gxFirstFatalError + 3,
  99.     could_not_create_backing_store = gxFirstFatalError + 4,        /* internal errors */
  100.     internal_error                = gxFirstNonfatalError,
  101.     internal_font_error            = gxFirstNonfatalError + 1,
  102.     internal_layout_error        = gxFirstNonfatalError + 2,        /* recoverable errors */
  103.     could_not_dispose_backing_store = internal_layout_error + 2,
  104.     unflattening_interrupted_by_client = internal_layout_error + 3, /* font manager errors */
  105.     font_cannot_be_changed        = internal_layout_error + 4,
  106.     illegal_font_parameter        = internal_layout_error + 5,    /* gxFont scaler errors */
  107.     null_font_scaler_context    = gxFirstFontScalerError,
  108.     null_font_scaler_input        = gxFirstFontScalerError + 1,
  109.     invalid_font_scaler_context    = gxFirstFontScalerError + 2,
  110.     invalid_font_scaler_input    = gxFirstFontScalerError + 3,
  111.     invalid_font_scaler_font_data = gxFirstFontScalerError + 4,
  112.     font_scaler_newblock_failed    = gxFirstFontScalerError + 5,
  113.     font_scaler_getfonttable_failed = gxFirstFontScalerError + 6,
  114.     font_scaler_bitmap_allocation_failed = gxFirstFontScalerError + 7,
  115.     font_scaler_outline_allocation_failed = gxFirstFontScalerError + 8,
  116.     required_font_scaler_table_missing = gxFirstFontScalerError + 9,
  117.     unsupported_font_scaler_outline_format = gxFirstFontScalerError + 10,
  118.     unsupported_font_scaler_stream_format = gxFirstFontScalerError + 11,
  119.     unsupported_font_scaler_font_format = gxFirstFontScalerError + 12,
  120.     font_scaler_hinting_error    = gxFirstFontScalerError + 13,
  121.     font_scaler_rasterizer_error = gxFirstFontScalerError + 14,
  122.     font_scaler_internal_error    = gxFirstFontScalerError + 15,
  123.     font_scaler_invalid_matrix    = gxFirstFontScalerError + 16,
  124.     font_scaler_fixed_overflow    = gxFirstFontScalerError + 17,
  125.     font_scaler_api_version_mismatch = gxFirstFontScalerError + 18,
  126.     font_scaler_streaming_aborted = gxFirstFontScalerError + 19,
  127.     unknown_font_scaler_error    = gxFirstFontScalerError + 20,    /* bad parameters */
  128.     parameter_is_nil            = gxFirstParameterError,
  129.     shape_is_nil                = gxFirstParameterError + 1,
  130.     style_is_nil                = gxFirstParameterError + 2,
  131.     transform_is_nil            = gxFirstParameterError + 3,
  132.     ink_is_nil                    = gxFirstParameterError + 4,
  133.     transferMode_is_nil            = gxFirstParameterError + 5,
  134.     color_is_nil                = gxFirstParameterError + 6,
  135.     colorProfile_is_nil            = gxFirstParameterError + 7,
  136.     colorSet_is_nil                = gxFirstParameterError + 8,
  137.     spoolProcedure_is_nil        = gxFirstParameterError + 9,
  138.     tag_is_nil                    = gxFirstParameterError + 10,
  139.     type_is_nil                    = gxFirstParameterError + 11,
  140.     mapping_is_nil                = gxFirstParameterError + 12,
  141.     invalid_viewDevice_reference = gxFirstParameterError + 13,
  142.     invalid_viewGroup_reference    = gxFirstParameterError + 14,
  143.     invalid_viewPort_reference    = gxFirstParameterError + 15,    /* implementation limits, these should be right before the debugging errors */
  144.     number_of_contours_exceeds_implementation_limit = gxFirstImplementationLimitError,
  145.     number_of_points_exceeds_implementation_limit = gxFirstImplementationLimitError + 1,
  146.     size_of_polygon_exceeds_implementation_limit = gxFirstImplementationLimitError + 2,
  147.     size_of_path_exceeds_implementation_limit = gxFirstImplementationLimitError + 3,
  148.     size_of_text_exceeds_implementation_limit = gxFirstImplementationLimitError + 4,
  149.     size_of_bitmap_exceeds_implementation_limit = gxFirstImplementationLimitError + 5,
  150.     number_of_colors_exceeds_implementation_limit = gxFirstImplementationLimitError + 6,
  151.     procedure_not_reentrant        = gxFirstImplementationLimitError + 7
  152. };
  153.  
  154.  
  155.  
  156.  
  157. enum {
  158.                                                                 /* internal debugging errors */
  159.     functionality_unimplemented    = gxFirstSystemDebuggingError,
  160.     clip_to_frame_shape_unimplemented = gxFirstSystemDebuggingError + 1, /* font parameter debugging errors */
  161.     illegal_font_storage_type    = gxFirstSystemDebuggingError + 2,
  162.     illegal_font_storage_reference = gxFirstSystemDebuggingError + 3,
  163.     illegal_font_attributes        = gxFirstSystemDebuggingError + 4, /* parameter debugging errors */
  164.     parameter_out_of_range        = gxFirstSystemDebuggingError + 5,
  165.     inconsistent_parameters        = gxFirstSystemDebuggingError + 6,
  166.     index_is_less_than_zero        = gxFirstSystemDebuggingError + 7,
  167.     index_is_less_than_one        = gxFirstSystemDebuggingError + 8,
  168.     count_is_less_than_zero        = gxFirstSystemDebuggingError + 9,
  169.     count_is_less_than_one        = gxFirstSystemDebuggingError + 10,
  170.     contour_is_less_than_zero    = gxFirstSystemDebuggingError + 11,
  171.     length_is_less_than_zero    = gxFirstSystemDebuggingError + 12,
  172.     invalid_client_reference    = gxFirstSystemDebuggingError + 13,
  173.     invalid_graphics_heap_start_pointer = gxFirstSystemDebuggingError + 14,
  174.     invalid_nongraphic_globals_pointer = gxFirstSystemDebuggingError + 15,
  175.     colorSpace_out_of_range        = gxFirstSystemDebuggingError + 16,
  176.     pattern_lattice_out_of_range = gxFirstSystemDebuggingError + 17,
  177.     frequency_parameter_out_of_range = gxFirstSystemDebuggingError + 18,
  178.     tinting_parameter_out_of_range = gxFirstSystemDebuggingError + 19,
  179.     method_parameter_out_of_range = gxFirstSystemDebuggingError + 20,
  180.     space_may_not_be_indexed    = gxFirstSystemDebuggingError + 21,
  181.     glyph_index_too_small        = gxFirstSystemDebuggingError + 22,
  182.     no_glyphs_added_to_font        = gxFirstSystemDebuggingError + 23,
  183.     glyph_not_added_to_font        = gxFirstSystemDebuggingError + 24,
  184.     point_does_not_intersect_bitmap = gxFirstSystemDebuggingError + 25,
  185.     required_font_table_not_present = gxFirstSystemDebuggingError + 26,
  186.     unknown_font_table_format    = gxFirstSystemDebuggingError + 27, /* the styles encoding is not present in the font */
  187.     shapeFill_not_allowed        = gxFirstSystemDebuggingError + 28,
  188.     inverseFill_face_must_set_clipLayer_flag = gxFirstSystemDebuggingError + 29,
  189.     invalid_transferMode_colorSpace = gxFirstSystemDebuggingError + 30,
  190.     colorProfile_must_be_nil    = gxFirstSystemDebuggingError + 31,
  191.     bitmap_pixel_size_must_be_1    = gxFirstSystemDebuggingError + 32,
  192.     empty_shape_not_allowed        = gxFirstSystemDebuggingError + 33,
  193.     ignorePlatformShape_not_allowed = gxFirstSystemDebuggingError + 34,
  194.     nil_style_in_glyph_not_allowed = gxFirstSystemDebuggingError + 35,
  195.     complex_glyph_style_not_allowed = gxFirstSystemDebuggingError + 36,
  196.     invalid_mapping                = gxFirstSystemDebuggingError + 37,
  197.     cannot_set_item_shapes_to_nil = gxFirstSystemDebuggingError + 38,
  198.     cannot_use_original_item_shapes_when_growing_picture = gxFirstSystemDebuggingError + 39,
  199.     cannot_add_unspecified_new_glyphs = gxFirstSystemDebuggingError + 40,
  200.     cannot_dispose_locked_tag    = gxFirstSystemDebuggingError + 41,
  201.     cannot_dispose_locked_shape    = gxFirstSystemDebuggingError + 42, /* restricted access */
  202.     shape_access_not_allowed    = gxFirstSystemDebuggingError + 43,
  203.     colorSet_access_restricted    = gxFirstSystemDebuggingError + 44,
  204.     colorProfile_access_restricted = gxFirstSystemDebuggingError + 45,
  205.     tag_access_restricted        = gxFirstSystemDebuggingError + 46,
  206.     viewDevice_access_restricted = gxFirstSystemDebuggingError + 47,
  207.     graphic_type_does_not_have_a_structure = gxFirstSystemDebuggingError + 48,
  208.     style_run_array_does_not_match_number_of_characters = gxFirstSystemDebuggingError + 49,
  209.     rectangles_cannot_be_inserted_into = gxFirstSystemDebuggingError + 50,
  210.     unknown_graphics_heap        = gxFirstSystemDebuggingError + 51,
  211.     graphics_routine_selector_is_obsolete = gxFirstSystemDebuggingError + 52,
  212.     cannot_set_graphics_client_memory_without_setting_size = gxFirstSystemDebuggingError + 53,
  213.     graphics_client_memory_too_small = gxFirstSystemDebuggingError + 54,
  214.     graphics_client_memory_is_already_allocated = gxFirstSystemDebuggingError + 55,
  215.     viewPort_is_a_window        = gxFirstSystemDebuggingError + 56, /* wrong type/bad reference */
  216.     illegal_type_for_shape        = gxFirstSystemDebuggingError + 57,
  217.     shape_does_not_contain_a_bitmap = gxFirstSystemDebuggingError + 58,
  218.     shape_does_not_contain_text    = gxFirstSystemDebuggingError + 59,
  219.     picture_expected            = gxFirstSystemDebuggingError + 60,
  220.     bitmap_is_not_resizable        = gxFirstSystemDebuggingError + 61,
  221.     shape_may_not_be_a_bitmap    = gxFirstSystemDebuggingError + 62,
  222.     shape_may_not_be_a_picture    = gxFirstSystemDebuggingError + 63,
  223.     graphic_type_does_not_contain_points = gxFirstSystemDebuggingError + 64,
  224.     graphic_type_does_not_have_multiple_contours = gxFirstSystemDebuggingError + 65,
  225.     graphic_type_cannot_be_mapped = gxFirstSystemDebuggingError + 66,
  226.     graphic_type_cannot_be_moved = gxFirstSystemDebuggingError + 67,
  227.     graphic_type_cannot_be_scaled = gxFirstSystemDebuggingError + 68,
  228.     graphic_type_cannot_be_rotated = gxFirstSystemDebuggingError + 69,
  229.     graphic_type_cannot_be_skewed = gxFirstSystemDebuggingError + 70,
  230.     graphic_type_cannot_be_reset = gxFirstSystemDebuggingError + 71,
  231.     graphic_type_cannot_be_dashed = gxFirstSystemDebuggingError + 72,
  232.     graphic_type_cannot_be_reduced = gxFirstSystemDebuggingError + 73,
  233.     graphic_type_cannot_be_inset = gxFirstSystemDebuggingError + 74,
  234.     shape_cannot_be_inverted    = gxFirstSystemDebuggingError + 75,
  235.     shape_does_not_have_area    = gxFirstSystemDebuggingError + 76,
  236.     shape_does_not_have_length    = gxFirstSystemDebuggingError + 77,
  237.     first_glyph_advance_must_be_absolute = gxFirstSystemDebuggingError + 78,
  238.     picture_cannot_contain_itself = gxFirstSystemDebuggingError + 79,
  239.     viewPort_cannot_contain_itself = gxFirstSystemDebuggingError + 80,
  240.     cannot_set_unique_items_attribute_when_picture_contains_items = gxFirstSystemDebuggingError + 81,
  241.     layer_style_cannot_contain_a_face = gxFirstSystemDebuggingError + 82,
  242.     layer_glyph_shape_cannot_contain_nil_styles = gxFirstSystemDebuggingError + 83, /* validation errors */
  243.     object_wrong_type            = gxFirstSystemDebuggingError + 84,
  244.     shape_wrong_type            = gxFirstSystemDebuggingError + 85,
  245.     style_wrong_type            = gxFirstSystemDebuggingError + 86,
  246.     ink_wrong_type                = gxFirstSystemDebuggingError + 87,
  247.     transform_wrong_type        = gxFirstSystemDebuggingError + 88,
  248.     device_wrong_type            = gxFirstSystemDebuggingError + 89,
  249.     port_wrong_type                = gxFirstSystemDebuggingError + 90, /* validation cache errors */
  250.     shape_cache_wrong_type        = gxFirstSystemDebuggingError + 91,
  251.     style_cache_wrong_type        = gxFirstSystemDebuggingError + 92,
  252.     ink_cache_wrong_type        = gxFirstSystemDebuggingError + 93,
  253.     transform_cache_wrong_type    = gxFirstSystemDebuggingError + 94,
  254.     port_cache_wrong_type        = gxFirstSystemDebuggingError + 95,
  255.     shape_cache_parent_mismatch    = gxFirstSystemDebuggingError + 96,
  256.     style_cache_parent_mismatch    = gxFirstSystemDebuggingError + 97,
  257.     ink_cache_parent_mismatch    = gxFirstSystemDebuggingError + 98,
  258.     transform_cache_parent_mismatch = gxFirstSystemDebuggingError + 99,
  259.     port_cache_parent_mismatch    = gxFirstSystemDebuggingError + 100,
  260.     invalid_shape_cache_port    = gxFirstSystemDebuggingError + 101,
  261.     invalid_shape_cache_device    = gxFirstSystemDebuggingError + 102,
  262.     invalid_ink_cache_port        = gxFirstSystemDebuggingError + 103,
  263.     invalid_ink_cache_device    = gxFirstSystemDebuggingError + 104,
  264.     invalid_style_cache_port    = gxFirstSystemDebuggingError + 105,
  265.     invalid_style_cache_device    = gxFirstSystemDebuggingError + 106,
  266.     invalid_transform_cache_port = gxFirstSystemDebuggingError + 107,
  267.     invalid_transform_cache_device = gxFirstSystemDebuggingError + 108,
  268.     recursive_caches            = gxFirstSystemDebuggingError + 109, /* validation shape cache errors */
  269.     invalid_fillShape_ownerCount = gxFirstSystemDebuggingError + 110,
  270.     recursive_fillShapes        = gxFirstSystemDebuggingError + 111, /* validation memory block errors */
  271.     indirect_memory_block_too_small = gxFirstSystemDebuggingError + 112,
  272.     indirect_memory_block_too_large = gxFirstSystemDebuggingError + 113,
  273.     unexpected_nil_pointer        = gxFirstSystemDebuggingError + 114,
  274.     bad_address                    = gxFirstSystemDebuggingError + 115, /* validation object errors */
  275.     no_owners                    = gxFirstSystemDebuggingError + 116,
  276.     invalid_pointer                = gxFirstSystemDebuggingError + 117,
  277.     invalid_seed                = gxFirstSystemDebuggingError + 118,
  278.     invalid_frame_seed            = gxFirstSystemDebuggingError + 119,
  279.     invalid_text_seed            = gxFirstSystemDebuggingError + 120,
  280.     invalid_draw_seed            = gxFirstSystemDebuggingError + 121,
  281.     bad_private_flags            = gxFirstSystemDebuggingError + 122, /* validation path and polygon errors */
  282.     invalid_vector_count        = gxFirstSystemDebuggingError + 123,
  283.     invalid_contour_count        = gxFirstSystemDebuggingError + 124, /* validation bitmap errors */
  284.     bitmap_ptr_too_small        = gxFirstSystemDebuggingError + 125,
  285.     bitmap_ptr_not_aligned        = gxFirstSystemDebuggingError + 126,
  286.     bitmap_rowBytes_negative    = gxFirstSystemDebuggingError + 127,
  287.     bitmap_width_negative        = gxFirstSystemDebuggingError + 128,
  288.     bitmap_height_negative        = gxFirstSystemDebuggingError + 129,
  289.     invalid_pixelSize            = gxFirstSystemDebuggingError + 130,
  290.     bitmap_rowBytes_too_small    = gxFirstSystemDebuggingError + 131,
  291.     bitmap_rowBytes_not_aligned    = gxFirstSystemDebuggingError + 132,
  292.     bitmap_rowBytes_must_be_specified_for_user_image_buffer = gxFirstSystemDebuggingError + 133, /* validation bitmap image errors */
  293.     invalid_bitImage_fileOffset    = gxFirstSystemDebuggingError + 134,
  294.     invalid_bitImage_owners        = gxFirstSystemDebuggingError + 135,
  295.     invalid_bitImage_rowBytes    = gxFirstSystemDebuggingError + 136,
  296.     invalid_bitImage_internal_flag = gxFirstSystemDebuggingError + 137, /* validation text errors */
  297.     text_bounds_cache_wrong_size = gxFirstSystemDebuggingError + 138,
  298.     text_metrics_cache_wrong_size = gxFirstSystemDebuggingError + 139,
  299.     text_index_cache_wrong_size    = gxFirstSystemDebuggingError + 140, /* validation glyph errors */
  300.     glyph_run_count_negative    = gxFirstSystemDebuggingError + 141,
  301.     glyph_run_count_zero        = gxFirstSystemDebuggingError + 142,
  302.     glyph_run_counts_do_not_sum_to_character_count = gxFirstSystemDebuggingError + 143,
  303.     glyph_first_advance_bit_set_not_allowed = gxFirstSystemDebuggingError + 144,
  304.     glyph_tangent_vectors_both_zero = gxFirstSystemDebuggingError + 145, /* validation layout errors */
  305.     layout_run_length_negative    = gxFirstSystemDebuggingError + 146,
  306.     layout_run_length_zero        = gxFirstSystemDebuggingError + 147,
  307.     layout_run_level_negative    = gxFirstSystemDebuggingError + 148,
  308.     layout_run_lengths_do_not_sum_to_text_length = gxFirstSystemDebuggingError + 149, /* validation picture errors */
  309.     bad_shape_in_picture        = gxFirstSystemDebuggingError + 150,
  310.     bad_style_in_picture        = gxFirstSystemDebuggingError + 151,
  311.     bad_ink_in_picture            = gxFirstSystemDebuggingError + 152,
  312.     bad_transform_in_picture    = gxFirstSystemDebuggingError + 153,
  313.     bad_shape_cache_in_picture    = gxFirstSystemDebuggingError + 154,
  314.     bad_seed_in_picture            = gxFirstSystemDebuggingError + 155,
  315.     invalid_picture_count        = gxFirstSystemDebuggingError + 156, /* validation text face errors */
  316.     bad_textLayer_count            = gxFirstSystemDebuggingError + 157,
  317.     bad_fillType_in_textFace    = gxFirstSystemDebuggingError + 158,
  318.     bad_style_in_textFace        = gxFirstSystemDebuggingError + 159,
  319.     bad_transform_in_textFace    = gxFirstSystemDebuggingError + 160, /* validation transform errors */
  320.     invalid_matrix_flag            = gxFirstSystemDebuggingError + 161,
  321.     transform_clip_missing        = gxFirstSystemDebuggingError + 162, /* validation font cache errors */
  322.     metrics_wrong_type            = gxFirstSystemDebuggingError + 163,
  323.     metrics_point_size_probably_bad = gxFirstSystemDebuggingError + 164,
  324.     scalar_block_wrong_type        = gxFirstSystemDebuggingError + 165,
  325.     scalar_block_parent_mismatch = gxFirstSystemDebuggingError + 166,
  326.     scalar_block_too_small        = gxFirstSystemDebuggingError + 167,
  327.     scalar_block_too_large        = gxFirstSystemDebuggingError + 168,
  328.     invalid_metrics_range        = gxFirstSystemDebuggingError + 169,
  329.     invalid_metrics_flags        = gxFirstSystemDebuggingError + 170,
  330.     metrics_maxWidth_probably_bad = gxFirstSystemDebuggingError + 171,
  331.     font_wrong_type                = gxFirstSystemDebuggingError + 172,
  332.     font_wrong_size                = gxFirstSystemDebuggingError + 173,
  333.     invalid_font_platform        = gxFirstSystemDebuggingError + 174,
  334.     invalid_lookup_range        = gxFirstSystemDebuggingError + 175,
  335.     invalid_lookup_platform        = gxFirstSystemDebuggingError + 176,
  336.     font_not_in_font_list        = gxFirstSystemDebuggingError + 177,
  337.     metrics_not_in_metrics_list    = gxFirstSystemDebuggingError + 178, /* validation view device errors */
  338.     bad_device_private_flags    = gxFirstSystemDebuggingError + 179,
  339.     bad_device_attributes        = gxFirstSystemDebuggingError + 180,
  340.     invalid_device_number        = gxFirstSystemDebuggingError + 181,
  341.     invalid_device_viewGroup    = gxFirstSystemDebuggingError + 182,
  342.     invalid_device_bounds        = gxFirstSystemDebuggingError + 183,
  343.     invalid_bitmap_in_device    = gxFirstSystemDebuggingError + 184, /* validation color set errors */
  344.     colorSet_wrong_type            = gxFirstSystemDebuggingError + 185,
  345.     invalid_colorSet_viewDevice_owners = gxFirstSystemDebuggingError + 186,
  346.     invalid_colorSet_colorSpace    = gxFirstSystemDebuggingError + 187,
  347.     invalid_colorSet_count        = gxFirstSystemDebuggingError + 188, /* validation color profile errors */
  348.     colorProfile_wrong_type        = gxFirstSystemDebuggingError + 189,
  349.     invalid_colorProfile_flags    = gxFirstSystemDebuggingError + 190,
  350.     invalid_colorProfile_response_count = gxFirstSystemDebuggingError + 191, /* validation internal backing store errors */
  351.     backing_free_parent_mismatch = gxFirstSystemDebuggingError + 192,
  352.     backing_store_parent_mismatch = gxFirstSystemDebuggingError + 193
  353. };
  354.  
  355.  
  356.  
  357. enum {
  358.                                                                 /* warnings about warnings */
  359.     warning_stack_underflow        = gxFirstSystemWarning,
  360.     warning_stack_overflow        = gxFirstSystemWarning + 1,
  361.     notice_stack_underflow        = gxFirstSystemWarning + 2,
  362.     notice_stack_overflow        = gxFirstSystemWarning + 3,
  363.     about_to_grow_heap            = gxFirstSystemWarning + 4,
  364.     about_to_unload_objects        = gxFirstSystemWarning + 5,        /* result went out of range */
  365.     map_shape_out_of_range        = gxFirstResultOutOfRangeWarning,
  366.     move_shape_out_of_range        = gxFirstResultOutOfRangeWarning + 1,
  367.     scale_shape_out_of_range    = gxFirstResultOutOfRangeWarning + 2,
  368.     rotate_shape_out_of_range    = gxFirstResultOutOfRangeWarning + 3,
  369.     skew_shape_out_of_range        = gxFirstResultOutOfRangeWarning + 4,
  370.     map_transform_out_of_range    = gxFirstResultOutOfRangeWarning + 5,
  371.     move_transform_out_of_range    = gxFirstResultOutOfRangeWarning + 6,
  372.     scale_transform_out_of_range = gxFirstResultOutOfRangeWarning + 7,
  373.     rotate_transform_out_of_range = gxFirstResultOutOfRangeWarning + 8,
  374.     skew_transform_out_of_range    = gxFirstResultOutOfRangeWarning + 9,
  375.     map_points_out_of_range        = gxFirstResultOutOfRangeWarning + 10, /* gave a parameter out of range */
  376.     contour_out_of_range        = gxFirstParameterOutOfRangeWarning,
  377.     index_out_of_range_in_contour = gxFirstParameterOutOfRangeWarning + 1,
  378.     picture_index_out_of_range    = gxFirstParameterOutOfRangeWarning + 2,
  379.     color_index_requested_not_found = gxFirstParameterOutOfRangeWarning + 3,
  380.     colorSet_index_out_of_range    = gxFirstParameterOutOfRangeWarning + 4,
  381.     index_out_of_range            = gxFirstParameterOutOfRangeWarning + 5,
  382.     count_out_of_range            = gxFirstParameterOutOfRangeWarning + 6,
  383.     length_out_of_range            = gxFirstParameterOutOfRangeWarning + 7,
  384.     font_table_index_out_of_range = gxFirstParameterOutOfRangeWarning + 8,
  385.     font_glyph_index_out_of_range = gxFirstParameterOutOfRangeWarning + 9,
  386.     point_out_of_range            = gxFirstParameterOutOfRangeWarning + 10,
  387.     profile_response_out_of_range = gxFirstParameterOutOfRangeWarning + 11, /* gxFont scaler warnings */
  388.     font_scaler_no_output        = gxFirstFontScalerWarning,
  389.     font_scaler_fake_metrics    = gxFirstFontScalerWarning + 1,
  390.     font_scaler_fake_linespacing = gxFirstFontScalerWarning + 2,
  391.     font_scaler_glyph_substitution = gxFirstFontScalerWarning + 3,
  392.     font_scaler_no_kerning_applied = gxFirstFontScalerWarning + 4, /* might not be what you expected */
  393.     character_substitution_took_place = gxFirstFontScalerWarning + 5,
  394.     unable_to_get_bounds_on_multiple_devices = gxFirstFontScalerWarning + 6,
  395.     font_language_not_found        = gxFirstFontScalerWarning + 7,
  396.     font_not_found_during_unflattening = gxFirstFontScalerWarning + 8, /*storage */
  397.     unrecognized_stream_version    = gxFirstFontScalerWarning + 9,
  398.     bad_data_in_stream            = gxFirstFontScalerWarning + 10
  399. };
  400.  
  401.  
  402.  
  403. enum {
  404.                                                                 /* nonsense data */
  405.     new_shape_contains_invalid_data = gxFirstSystemDebuggingWarning,
  406.     new_tag_contains_invalid_data = gxFirstSystemDebuggingWarning + 1,
  407.     extra_data_passed_was_ignored = gxFirstSystemDebuggingWarning + 2,
  408.     font_table_not_found        = gxFirstSystemDebuggingWarning + 3,
  409.     font_name_not_found            = gxFirstSystemDebuggingWarning + 4, /* doesn't make sense to do */
  410.     unable_to_traverse_open_contour_that_starts_or_ends_off_the_curve = gxFirstSystemDebuggingWarning + 5,
  411.     unable_to_draw_open_contour_that_starts_or_ends_off_the_curve = gxFirstSystemDebuggingWarning + 6,
  412.     cannot_dispose_default_shape = gxFirstSystemDebuggingWarning + 7,
  413.     cannot_dispose_default_style = gxFirstSystemDebuggingWarning + 8,
  414.     cannot_dispose_default_ink    = gxFirstSystemDebuggingWarning + 9,
  415.     cannot_dispose_default_transform = gxFirstSystemDebuggingWarning + 10,
  416.     cannot_dispose_default_colorProfile = gxFirstSystemDebuggingWarning + 11,
  417.     cannot_dispose_default_colorSet = gxFirstSystemDebuggingWarning + 12,
  418.     shape_direct_attribute_not_set = gxFirstSystemDebuggingWarning + 13, /* couldn't find what you were looking for */
  419.     point_does_not_intersect_port = gxFirstSystemDebuggingWarning + 14,
  420.     cannot_dispose_non_font        = gxFirstSystemDebuggingWarning + 15,
  421.     face_override_style_font_must_match_style = gxFirstSystemDebuggingWarning + 16,
  422.     union_of_area_and_length_returns_area_only = gxFirstSystemDebuggingWarning + 17,
  423.     insufficient_coordinate_space_for_new_device = gxFirstSystemDebuggingWarning + 18, /* other */
  424.     shape_passed_has_no_bounds    = gxFirstSystemDebuggingWarning + 19,
  425.     tags_of_type_flst_removed    = gxFirstSystemDebuggingWarning + 20,
  426.     translator_not_installed_on_this_grafport = gxFirstSystemDebuggingWarning + 21
  427. };
  428.  
  429.  
  430. enum {
  431.     parameters_have_no_effect    = gxFirstSystemNotice,
  432.     attributes_already_set        = gxFirstSystemNotice + 1,
  433.     caps_already_set            = gxFirstSystemNotice + 2,
  434.     clip_already_set            = gxFirstSystemNotice + 3,
  435.     color_already_set            = gxFirstSystemNotice + 4,
  436.     curve_error_already_set        = gxFirstSystemNotice + 5,
  437.     dash_already_set            = gxFirstSystemNotice + 6,
  438.     default_colorProfile_already_set = gxFirstSystemNotice + 7,
  439.     default_ink_already_set        = gxFirstSystemNotice + 8,
  440.     default_transform_already_set = gxFirstSystemNotice + 9,
  441.     default_shape_already_set    = gxFirstSystemNotice + 10,
  442.     default_style_already_set    = gxFirstSystemNotice + 11,
  443.     dither_already_set            = gxFirstSystemNotice + 12,
  444.     encoding_already_set        = gxFirstSystemNotice + 13,
  445.     face_already_set            = gxFirstSystemNotice + 14,
  446.     fill_already_set            = gxFirstSystemNotice + 15,
  447.     font_already_set            = gxFirstSystemNotice + 16,
  448.     font_variations_already_set    = gxFirstSystemNotice + 17,
  449.     glyph_positions_are_already_set = gxFirstSystemNotice + 18,
  450.     glyph_tangents_are_already_set = gxFirstSystemNotice + 19,
  451.     halftone_already_set        = gxFirstSystemNotice + 20,
  452.     hit_test_already_set        = gxFirstSystemNotice + 21,
  453.     ink_already_set                = gxFirstSystemNotice + 22,
  454.     join_already_set            = gxFirstSystemNotice + 23,
  455.     justification_already_set    = gxFirstSystemNotice + 24,
  456.     mapping_already_set            = gxFirstSystemNotice + 25,
  457.     pattern_already_set            = gxFirstSystemNotice + 26,
  458.     pen_already_set                = gxFirstSystemNotice + 27,
  459.     style_already_set            = gxFirstSystemNotice + 28,
  460.     tag_already_set                = gxFirstSystemNotice + 29,
  461.     text_attributes_already_set    = gxFirstSystemNotice + 30,
  462.     text_size_already_set        = gxFirstSystemNotice + 31,
  463.     transfer_already_set        = gxFirstSystemNotice + 32,
  464.     translator_already_installed_on_this_grafport = gxFirstSystemNotice + 33,
  465.     transform_already_set        = gxFirstSystemNotice + 34,
  466.     type_already_set            = gxFirstSystemNotice + 35,
  467.     validation_level_already_set = gxFirstSystemNotice + 36,
  468.     viewPorts_already_set        = gxFirstSystemNotice + 37,
  469.     viewPort_already_in_viewGroup = gxFirstSystemNotice + 38,
  470.     viewDevice_already_in_viewGroup = gxFirstSystemNotice + 39,
  471.     geometry_unaffected            = gxFirstSystemNotice + 40,
  472.     mapping_unaffected            = gxFirstSystemNotice + 41,
  473.     tags_in_shape_ignored        = gxFirstSystemNotice + 42,
  474.     shape_already_in_primitive_form = gxFirstSystemNotice + 43,
  475.     shape_already_in_simple_form = gxFirstSystemNotice + 44,
  476.     shape_already_broken        = gxFirstSystemNotice + 45,
  477.     shape_already_joined        = gxFirstSystemNotice + 46,
  478.     cache_already_cleared        = gxFirstSystemNotice + 47,
  479.     shape_not_disposed            = gxFirstSystemNotice + 48,
  480.     style_not_disposed            = gxFirstSystemNotice + 49,
  481.     ink_not_disposed            = gxFirstSystemNotice + 50,
  482.     transform_not_disposed        = gxFirstSystemNotice + 51,
  483.     colorSet_not_disposed        = gxFirstSystemNotice + 52,
  484.     colorProfile_not_disposed    = gxFirstSystemNotice + 53,
  485.     font_not_disposed            = gxFirstSystemNotice + 54,
  486.     glyph_tangents_have_no_effect = gxFirstSystemNotice + 55,
  487.     glyph_positions_determined_by_advance = gxFirstSystemNotice + 56,
  488.     transform_viewPorts_already_set = gxFirstSystemNotice + 57,
  489.     directShape_attribute_set_as_side_effect = gxFirstSystemNotice + 58,
  490.     lockShape_called_as_side_effect = gxFirstSystemNotice + 59,
  491.     lockTag_called_as_side_effect = gxFirstSystemNotice + 60,
  492.     shapes_unlocked_as_side_effect = gxFirstSystemNotice + 61,
  493.     shape_not_locked            = gxFirstSystemNotice + 62,
  494.     tag_not_locked                = gxFirstSystemNotice + 63,
  495.     profile_not_locked            = tag_not_locked,
  496.     lockProfile_called_as_side_effect = lockTag_called_as_side_effect,
  497.     disposed_dead_caches        = gxFirstSystemNotice + 64,
  498.     disposed_live_caches        = gxFirstSystemNotice + 65,
  499.     low_on_memory                = gxFirstSystemNotice + 66,
  500.     very_low_on_memory            = gxFirstSystemNotice + 67,
  501.     transform_references_disposed_viewPort = gxFirstSystemNotice + 68
  502. };
  503.  
  504.  
  505. typedef long                             gxGraphicsError;
  506. typedef long                             gxGraphicsWarning;
  507. typedef long                             gxGraphicsNotice;
  508. typedef CALLBACK_API_C( void , gxUserErrorProcPtr )(gxGraphicsError status, long refcon);
  509. typedef CALLBACK_API_C( void , gxUserWarningProcPtr )(gxGraphicsWarning status, long refcon);
  510. typedef CALLBACK_API_C( void , gxUserNoticeProcPtr )(gxGraphicsNotice status, long refcon);
  511. typedef STACK_UPP_TYPE(gxUserErrorProcPtr)                         gxUserErrorUPP;
  512. typedef STACK_UPP_TYPE(gxUserWarningProcPtr)                     gxUserWarningUPP;
  513. typedef STACK_UPP_TYPE(gxUserNoticeProcPtr)                     gxUserNoticeUPP;
  514. enum { uppgxUserErrorProcInfo = 0x000003C1 };                     /* no_return_value Func(4_bytes, 4_bytes) */
  515. enum { uppgxUserWarningProcInfo = 0x000003C1 };                 /* no_return_value Func(4_bytes, 4_bytes) */
  516. enum { uppgxUserNoticeProcInfo = 0x000003C1 };                     /* no_return_value Func(4_bytes, 4_bytes) */
  517. #define NewgxUserErrorProc(userRoutine)                         (gxUserErrorUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppgxUserErrorProcInfo, GetCurrentArchitecture())
  518. #define NewgxUserWarningProc(userRoutine)                         (gxUserWarningUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppgxUserWarningProcInfo, GetCurrentArchitecture())
  519. #define NewgxUserNoticeProc(userRoutine)                         (gxUserNoticeUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppgxUserNoticeProcInfo, GetCurrentArchitecture())
  520. #define CallgxUserErrorProc(userRoutine, status, refcon)         CALL_TWO_PARAMETER_UPP((userRoutine), uppgxUserErrorProcInfo, (status), (refcon))
  521. #define CallgxUserWarningProc(userRoutine, status, refcon)         CALL_TWO_PARAMETER_UPP((userRoutine), uppgxUserWarningProcInfo, (status), (refcon))
  522. #define CallgxUserNoticeProc(userRoutine, status, refcon)         CALL_TWO_PARAMETER_UPP((userRoutine), uppgxUserNoticeProcInfo, (status), (refcon))
  523. typedef gxUserErrorProcPtr                 gxUserErrorFunction;
  524. typedef gxUserWarningProcPtr             gxUserWarningFunction;
  525. typedef gxUserNoticeProcPtr             gxUserNoticeFunction;
  526.  
  527.  
  528. enum {
  529.     common_colors_not_initialized = gxFirstLibraryError,
  530.     no_open_picture                = gxFirstLibraryError + 1,
  531.     picture_already_open        = gxFirstLibraryError + 2,
  532.     no_open_poly                = gxFirstLibraryError + 3,
  533.     poly_already_open            = gxFirstLibraryError + 4,
  534.     no_open_region                = gxFirstLibraryError + 5,
  535.     region_already_open            = gxFirstLibraryError + 6,
  536.     no_active_picture            = gxFirstLibraryError + 7
  537. };
  538.  
  539.  
  540. enum {
  541.     no_picture_drawn            = gxFirstLibraryWarning,
  542.     polygons_have_different_size_contours = gxFirstLibraryWarning + 1,
  543.     graphic_type_cannot_be_specifed_by_four_values = gxFirstLibraryWarning + 2,
  544.     graphic_type_cannot_be_specifed_by_six_values = gxFirstLibraryWarning + 3,
  545.     point_expected                = gxFirstLibraryWarning + 4,
  546.     line_or_rectangle_expected    = gxFirstLibraryWarning + 5,
  547.     curve_expected                = gxFirstLibraryWarning + 6,
  548.     graphic_type_does_not_contain_control_bits = gxFirstLibraryWarning + 7,
  549.     request_exceeds_available_data = gxFirstLibraryWarning + 8,
  550.     extra_data_unread            = gxFirstLibraryWarning + 9,
  551.     no_variable_length_user_data_saved = gxFirstLibraryWarning + 10
  552. };
  553.  
  554.  
  555. enum {
  556.     zero_length_string_passed    = gxFirstLibraryNotice
  557. };
  558.  
  559.  
  560. enum {
  561.                                                                 /* These levels tell how to validate routines.  Choose one. */
  562.     gxNoValidation                = 0x00,                            /* no validation */
  563.     gxPublicValidation            = 0x01,                            /* check parameters to public routines */
  564.     gxInternalValidation        = 0x02,                            /* check parameters to internal routines */
  565.                                                                 /* These levels tell how to validate types.  Choose one. */
  566.     gxTypeValidation            = 0x00,                            /* check types of objects */
  567.     gxStructureValidation        = 0x10,                            /* check fields of private structures */
  568.     gxAllObjectValidation        = 0x20,                            /* check every object over every call */
  569.                                                                 /* These levels tell how to validate memory manager blocks.  Choose any combination. */
  570.     gxNoMemoryManagerValidation    = 0x0000,
  571.     gxApBlockValidation            = 0x0100,                        /* check the relevant block structures after each memory mgr. call */
  572.     gxFontBlockValidation        = 0x0200,                        /* check the system gxHeap as well */
  573.     gxApHeapValidation            = 0x0400,                        /* check the memory manager’s gxHeap after every mem. call */
  574.     gxFontHeapValidation        = 0x0800,                        /* check the system gxHeap as well */
  575.     gxCheckApHeapValidation        = 0x1000,                        /* check the memory manager’s gxHeap if checking routine parameters */
  576.     gxCheckFontHeapValidation    = 0x2000                        /* check the system gxHeap as well */
  577. };
  578.  
  579. typedef long                             gxValidationLevel;
  580.  
  581. enum {
  582.     no_draw_error                = 0,                            /* gxShape type errors */
  583.     shape_emptyType                = 1,
  584.     shape_inverse_fullType        = 2,
  585.     rectangle_zero_width        = 3,
  586.     rectangle_zero_height        = 4,
  587.     polygon_empty                = 5,
  588.     path_empty                    = 6,
  589.     bitmap_zero_width            = 7,
  590.     bitmap_zero_height            = 8,
  591.     text_empty                    = 9,
  592.     glyph_empty                    = 10,
  593.     layout_empty                = 11,
  594.     picture_empty                = 12,                            /* general gxShape errors */
  595.     shape_no_fill                = 13,
  596.     shape_no_enclosed_area        = 14,
  597.     shape_no_enclosed_pixels    = 15,
  598.     shape_very_small            = 16,
  599.     shape_very_large            = 17,
  600.     shape_contours_cancel        = 18,                            /* gxStyle errors */
  601.     pen_too_small                = 19,
  602.     text_size_too_small            = 20,
  603.     dash_empty                    = 21,
  604.     start_cap_empty                = 22,
  605.     pattern_empty                = 23,
  606.     textFace_empty                = 24,
  607.     shape_primitive_empty        = 25,
  608.     shape_primitive_very_small    = 26,                            /* gxInk errors */
  609.     transfer_equals_noMode        = 27,
  610.     transfer_matrix_ignores_source = 28,
  611.     transfer_matrix_ignores_device = 29,
  612.     transfer_source_reject        = 30,
  613.     transfer_mode_ineffective    = 31,
  614.     colorSet_no_entries            = 32,
  615.     bitmap_colorSet_one_entry    = 33,                            /* gxTransform errors */
  616.     transform_scale_too_small    = 34,
  617.     transform_map_too_large        = 35,
  618.     transform_move_too_large    = 36,
  619.     transform_scale_too_large    = 37,
  620.     transform_rotate_too_large    = 38,
  621.     transform_perspective_too_large = 39,
  622.     transform_skew_too_large    = 40,
  623.     transform_clip_no_intersection = 41,
  624.     transform_clip_empty        = 42,
  625.     transform_no_viewPorts        = 43,                            /* gxViewPort errors */
  626.     viewPort_disposed            = 44,
  627.     viewPort_clip_empty            = 45,
  628.     viewPort_clip_no_intersection = 46,
  629.     viewPort_scale_too_small    = 47,
  630.     viewPort_map_too_large        = 48,
  631.     viewPort_move_too_large        = 49,
  632.     viewPort_scale_too_large    = 50,
  633.     viewPort_rotate_too_large    = 51,
  634.     viewPort_perspective_too_large = 52,
  635.     viewPort_skew_too_large        = 53,
  636.     viewPort_viewGroup_offscreen = 54,                            /* gxViewDevice errors */
  637.     viewDevice_clip_no_intersection = 55,
  638.     viewDevice_scale_too_small    = 56,
  639.     viewDevice_map_too_large    = 57,
  640.     viewDevice_move_too_large    = 58,
  641.     viewDevice_scale_too_large    = 59,
  642.     viewDevice_rotate_too_large    = 60,
  643.     viewDevice_perspective_too_large = 61,
  644.     viewDevice_skew_too_large    = 62
  645. };
  646.  
  647. typedef long                             gxDrawError;
  648. EXTERN_API_C( gxDrawError )
  649. GXGetShapeDrawError                (gxShape                 source)                                THREEWORDINLINE(0x303C, 0x01EE, 0xA832);
  650.  
  651. EXTERN_API_C( void )
  652. GXValidateAll                    (void)                                                        THREEWORDINLINE(0x303C, 0x01EF, 0xA832);
  653.  
  654. EXTERN_API_C( void )
  655. GXValidateColorSet                (gxColorSet             target)                                THREEWORDINLINE(0x303C, 0x01F0, 0xA832);
  656.  
  657. EXTERN_API_C( void )
  658. GXValidateColorProfile            (gxColorProfile         target)                                THREEWORDINLINE(0x303C, 0x01F1, 0xA832);
  659.  
  660. EXTERN_API_C( void )
  661. GXValidateGraphicsClient        (gxGraphicsClient         target)                                THREEWORDINLINE(0x303C, 0x01F2, 0xA832);
  662.  
  663. EXTERN_API_C( void )
  664. GXValidateInk                    (gxInk                     target)                                THREEWORDINLINE(0x303C, 0x01F3, 0xA832);
  665.  
  666. EXTERN_API_C( void )
  667. GXValidateShape                    (gxShape                 target)                                THREEWORDINLINE(0x303C, 0x01F4, 0xA832);
  668.  
  669. EXTERN_API_C( void )
  670. GXValidateStyle                    (gxStyle                 target)                                THREEWORDINLINE(0x303C, 0x01F5, 0xA832);
  671.  
  672. EXTERN_API_C( void )
  673. GXValidateTag                    (gxTag                     target)                                THREEWORDINLINE(0x303C, 0x01F6, 0xA832);
  674.  
  675. EXTERN_API_C( void )
  676. GXValidateTransform                (gxTransform             target)                                THREEWORDINLINE(0x303C, 0x01F7, 0xA832);
  677.  
  678. EXTERN_API_C( void )
  679. GXValidateViewDevice            (gxViewDevice             target)                                THREEWORDINLINE(0x303C, 0x01F8, 0xA832);
  680.  
  681. EXTERN_API_C( void )
  682. GXValidateViewPort                (gxViewPort             target)                                THREEWORDINLINE(0x303C, 0x01F9, 0xA832);
  683.  
  684. EXTERN_API_C( void )
  685. GXValidateViewGroup                (gxViewGroup             target)                                THREEWORDINLINE(0x303C, 0x01FA, 0xA832);
  686.  
  687. EXTERN_API_C( gxValidationLevel )
  688. GXGetValidation                    (void)                                                        THREEWORDINLINE(0x303C, 0x01FB, 0xA832);
  689.  
  690. EXTERN_API_C( void )
  691. GXSetValidation                    (gxValidationLevel         level)                                THREEWORDINLINE(0x303C, 0x01FC, 0xA832);
  692.  
  693. EXTERN_API_C( long )
  694. GXGetValidationError            (char *                    procedureName,
  695.                                  void **                argument,
  696.                                  long *                    argumentNumber)                        THREEWORDINLINE(0x303C, 0x01FD, 0xA832);
  697.  
  698.  
  699.  
  700. #if defined(__MWERKS__) && TARGET_CPU_68K
  701.     #pragma pop
  702. #endif
  703.  
  704. #if PRAGMA_STRUCT_ALIGN
  705.     #pragma options align=reset
  706. #elif PRAGMA_STRUCT_PACKPUSH
  707.     #pragma pack(pop)
  708. #elif PRAGMA_STRUCT_PACK
  709.     #pragma pack()
  710. #endif
  711.  
  712. #ifdef PRAGMA_IMPORT_OFF
  713. #pragma import off
  714. #elif PRAGMA_IMPORT
  715. #pragma import reset
  716. #endif
  717.  
  718. #ifdef __cplusplus
  719. }
  720. #endif
  721.  
  722. #endif /* __GXERRORS__ */
  723.  
  724.